package task;

import java.util.concurrent.ExecutorService;
import java.util.concurrent.Executors;


public class TaskPool {
	static private final int MAX_RUNNABLE_TASKS = 50;
	
	static private ExecutorService executor = 
			Executors.newFixedThreadPool(MAX_RUNNABLE_TASKS);
	
	synchronized static public void runTask(Runnable task) {
		executor.execute(task);
	}
}
